package com.hashbee.bbs.dao;

import com.hashbee.bbs.bo.IsLike;
import com.hashbee.bbs.bo.para.PageQueryPara;
import com.hashbee.bbs.bo.para.PostPara;
import com.hashbee.bbs.domain.Posts;

import java.util.ArrayList;
import java.util.Map;

public interface PostsMapper {
    int deleteByPrimaryKey(String postId);

    int insert(PostPara postPara);

    Posts selectByPrimaryKey(String postId);

    ArrayList<Posts> selectTopic(PageQueryPara pageQueryPara);

    ArrayList<Posts> selectReply(PageQueryPara pageQueryPara);

    Integer selectTopicCount(PageQueryPara pageQueryPara);

    Integer selectCount(PageQueryPara pageQueryPara);

    int increaseReplyCount(String postId);

    int increaseViewCount(String postId);

    int updateLikeOrHate(IsLike isLike);
}